package com.leonzhangxf.user.repository;

import com.leonzhangxf.user.domain.Token;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author leonzhangxf
 */
@Repository
public interface TokenRepository extends JpaRepository<Token, Integer> {

    Token findByToken(String token);

    Token findByEmail(String email);
}
